import { IsString } from "class-validator";
import { BaseEntity } from "../BaseEntity";
import { Model } from "sequelize";

export default class MessageTypeEntity extends BaseEntity {
  id?: number;
  
  @IsString()
  public typeName: string;

  public static transform(plainObject: object): MessageTypeEntity {
    return super.baseTransform(MessageTypeEntity, plainObject);
  }
}

export interface IMessageTypeModel extends Model<MessageTypeEntity> {}
